package dierweek;

import java.util.Scanner;

public class shuixianhuashu {
    public static void main(String[] args) {
        int a,b,c;
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入一个数0-999");
        int abc=scanner.nextInt();
        a=abc/100;
        b=abc/10%10;
        c=abc%10;
        if (abc==a*a*a+b*b*b+c*c*c){
            System.out.println(+abc+"是水仙花数");
        } else{
            System.out.println("不是水仙花数");
        }
    }
}
